import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path: '/',redirect:'/login'},
    {path:'/manager',component :() => import('../views/Manager.vue'),children:[
        {path: 'employee', name: 'employee', component: () => import('../views/Employee.vue'),},
        {path: 'question', name: 'question', component: () => import('../views/Question.vue'),},
        {path: 'organization', name: 'organization', component: () => import('../views/Organization.vue'),},
        {path: 'student', name: 'student', component: () => import('../views/Students.vue'),},
         {path: 'result', name: 'result', component: () => import('../views/Results.vue'),},
      ]},
    {path:"/login",component:() => import('../views/Login.vue')},
    // {path:"/question",component:() => import('../views/Question.vue')},
    {path:"/student",component:() => import('../views/Student.vue'),},
      {path:"/result",component:() => import('../views/Result.vue'),},
    {path:"/loginstudent",component:() => import('../views/LoginStudent.vue'),},
    {path:"/questions",component:() => import('../views/Questions.vue'),}
  ],
})

export default router
